package com.room.search.service.dto;

import java.util.List;

/**
 * By   : ghd.bright
 * Time : 2022/3/29
 * Description:
 */
public class SearchCommunityDataDTO {

    private Area area;

    private List<String> average;

    private Integer pageNum;
    private Integer pageSize;

    public Integer getPageNum() {
        return pageNum;
    }

    public SearchCommunityDataDTO setPageNum(Integer pageNum) {
        this.pageNum = pageNum - 1;
        return this;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public SearchCommunityDataDTO setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        return this;
    }

    public Area getArea() {
        return area;
    }

    public SearchCommunityDataDTO setArea(Area area) {
        this.area = area;
        return this;
    }

    public List<String> getAverage() {
        return average;
    }

    public SearchCommunityDataDTO setAverage(List<String> average) {
        this.average = average;
        return this;
    }

    public static class Area {
        private String city;
        private String district;

        public String getCity() {
            return city;
        }

        public Area setCity(String city) {
            this.city = city;
            return this;
        }

        public String getDistrict() {
            return district;
        }

        public Area setDistrict(String district) {
            this.district = district;
            return this;
        }
    }
}
